﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="RepairViewbySN.aspx.cs" Inherits="ProductRepair_RepairViewbySN" Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style="text-align: center;">
        <br />
        <p>选择查询方式：<asp:DropDownList ID="DropDownList1" runat="server">
                <asp:ListItem Value="按腔体序列号查询">按腔体序列号查询</asp:ListItem>
                <asp:ListItem Value="按成品序列号查询">按成品序列号查询</asp:ListItem>
            </asp:DropDownList>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            输入序列号：<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><asp:RequiredFieldValidator 
                ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" 
                ErrorMessage="*" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="Button1" runat="server" Text="查  询" ValidationGroup="VGroup1" 
                onclick="Button1_Click" />
        </p>
        <br />        
    </div>
    <div>
        返修记录列表：
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" Width="100%" 
            AutoGenerateColumns="False" BackColor="White" BorderColor="White" 
            BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" 
            GridLines="None" onpageindexchanging="GridView1_PageIndexChanging">
            <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
            <Columns>
                <asp:BoundField DataField="ProductSN" HeaderText="腔体序列号" />
                <asp:BoundField DataField="PackageProductSN" HeaderText="成品序列号" />
                <asp:BoundField DataField="RecordTime" HeaderText="记录时间" />
                <asp:BoundField DataField="UserID" HeaderText="记录员" />
                <asp:BoundField DataField="Remark" HeaderText="返修原因与备注" />
            </Columns>
            <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
            <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
            <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
        </asp:GridView>
        <br />
        返修详细记录列表：
        <asp:GridView ID="GridView2" runat="server" AllowPaging="True" Width="100%"
            AutoGenerateColumns="False" BackColor="White" BorderColor="White" 
            BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" 
            GridLines="None" onpageindexchanging="GridView2_PageIndexChanging">
            <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
            <Columns>
                <asp:BoundField DataField="ProductSN" HeaderText="腔体序列号" />
                <asp:BoundField DataField="RecordTime" HeaderText="记录时间" />
                <asp:BoundField DataField="RepairStep" HeaderText="返修工序" />
            </Columns>
            <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
            <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
            <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
        </asp:GridView>
        <br />
        <br />
    </div>
</asp:Content>

